import request from "@/utils/request";

// 查询12345噪声污染投诉信息库列表
export function listComplaint(query) {
  return request({
    url: "/bt/complaint/list",
    method: "get",
    params: query,
  });
}

// 查询12345噪声污染投诉信息库详细
export function getComplaint(id) {
  return request({
    url: "/bt/complaint/" + id,
    method: "get",
  });
}

// 新增12345噪声污染投诉信息库
export function addComplaint(data) {
  return request({
    url: "/bt/complaint",
    method: "post",
    data: data,
  });
}

// 修改12345噪声污染投诉信息库
export function updateComplaint(data) {
  return request({
    url: "/bt/complaint",
    method: "put",
    data: data,
  });
}

// 删除12345噪声污染投诉信息库
export function delComplaint(id) {
  return request({
    url: "/bt/complaint/" + id,
    method: "delete",
  });
}
